package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.HopeJobMapper;
import com.wanmait.recruitment.pojo.HopeJob;
import com.wanmait.recruitment.service.HopeJobService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.security.PublicKey;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class HopeJobServiceImpl  implements HopeJobService {
    @Resource
    private HopeJobMapper hopeJobMapper;
    @Override
    public void insert(HopeJob object) {

         hopeJobMapper.insertHopeJob(object);

    }

    @Override
    public void delete(Integer id) {

        hopeJobMapper.delete(id);

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(HopeJob object) {

    }

    @Override
    public void update(HopeJob object, Integer id) {
        hopeJobMapper.updateHopeJob(object,id);

    }

    @Override
    public HopeJob findById(Integer id) {
        return hopeJobMapper.selectById(id);
    }

    @Override
    public List<HopeJob> findAll() {
        return null;
    }

    @Override
    public List<HopeJob> findAll(HopeJob object) {
        return null;
    }

    @Override
    public PageInfo<HopeJob> findPage(int pageNum, int pageSize) {
        return null;
    }
    @Override
    public  List<HopeJob>selectById(Integer id){

        return hopeJobMapper.selectHopeJobById(id);
    }
}
